package cn.life.common.entity.model;


/**
 * @Description:  公共分页
 *
 * @Author 李佳明
 * @Date 2017/10/31 21:11
 */
public class Page {
    /**
     * 页数
     */
    private Integer pageIndex = 0;
    /**
     *  个数
     */
    private Integer pageSize = 20;

    public Integer getPageIndex() {
        if(pageIndex == null){
            pageIndex = 0;
        }
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        if(pageSize == null){
            pageSize = 20;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
